home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / submarine_effects_scripts / submarine_shot.lua < prev   
Encoding:
Text File  |  2007-01-25  |  3.6 KB  |  151 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_SUBMARINESHOT)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 1
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24. PT = Emitter.ParticleTypesParams[1]
  25. PT.IsEmitterLocked = false
  26. PT.DrawOrder = 2
  27. PT.Material = ENMAT_SIMPLEPARTICLE
  28.  
  29.  
  30. PT.TextureName = "submarine_effect_tracesmoke.dds"
  31.  
  32. PT.ParticlesPerSecond = 0.1;
  33. PT.InitialNumberOfParticles = 15.0;
  34. PT.BaseLifeTime = 2.0;
  35. PT.BaseLifeTimeVariance = 0.0;
  36. PT.BaseSpeed = 1.0;
  37. PT.BaseSpeedVariance = 0.0;
  38. PT.BaseAngle = 3.0;
  39. PT.BaseAngleVariance = 5.0;
  40. PT.BaseAngleSpeed = 0.1;
  41. PT.BaseAngleSpeedVariance = 0.1;
  42. PT.BaseAngleSpeedDirection = 0;
  43. local vzbzd4 = D3DXVECTOR3:new(0.0,0.0,1.0)
  44. PT.BaseDirection = vzbzd4
  45. vzbzd4:delete()
  46. PT.DirectionRelativeness = ENREL_PARENT
  47. local vzbzd5 = D3DXVECTOR3:new(0.0,0.0,0.0)
  48. PT.BaseDirectionVariance = vzbzd5
  49. vzbzd5:delete()
  50. local vzbzd6 = D3DXVECTOR3:new(0,0,5)
  51. PT.BasePosition = vzbzd6
  52. vzbzd6:delete()
  53. local vzbzd7 = D3DXVECTOR3:new(5,5,5)
  54. PT.BasePositionVariance = vzbzd7
  55. vzbzd7:delete()
  56. PT.BaseSize = 3.0;
  57. PT.BaseSizeVariance = 3.0;
  58.  
  59. -- color over time
  60. PT.ColorOverTimeR[1].TimePercent = 0.0;
  61. PT.ColorOverTimeR[1].Value = 0.4;
  62. PT.ColorOverTimeG[1].TimePercent = 0.0;
  63. PT.ColorOverTimeG[1].Value = 0.5;
  64. PT.ColorOverTimeB[1].TimePercent = 0.0;
  65. PT.ColorOverTimeB[1].Value = 0.6;
  66.  
  67. PT.ColorOverTimeR[2].TimePercent = 1.0;
  68. PT.ColorOverTimeR[2].Value = 0.5;
  69. PT.ColorOverTimeG[2].TimePercent = 1.0;
  70. PT.ColorOverTimeG[2].Value = 0.5;
  71. PT.ColorOverTimeB[2].TimePercent = 1.0;
  72. PT.ColorOverTimeB[2].Value = 0.5;
  73.  
  74. -- transparency over time
  75. PT.TransparencyOverTime[1].TimePercent = 0.0;
  76. PT.TransparencyOverTime[1].Value = 0.0;
  77.  
  78. PT.TransparencyOverTime[2].TimePercent = 0.05;
  79. PT.TransparencyOverTime[2].Value = 0.5;
  80.  
  81. PT.TransparencyOverTime[3].TimePercent = 1.0;
  82. PT.TransparencyOverTime[3].Value = 0.0;
  83.  
  84.  
  85. -- size over time
  86. PT.SizeOverTime[1].TimePercent = 0.0;
  87. PT.SizeOverTime[1].Value = 1.0;
  88.  
  89. PT.SizeOverTime[2].TimePercent = 0.08;
  90. PT.SizeOverTime[2].Value = 4.0;
  91.  
  92. PT.SizeOverTime[3].TimePercent = 1.0;
  93. PT.SizeOverTime[3].Value = 5.0;
  94.  
  95.  
  96. -- Speed over time
  97. PT.SpeedOverTime[1].TimePercent = 0.0;
  98. PT.SpeedOverTime[1].Value = 0.0;
  99.  
  100. PT.SpeedOverTime[2].TimePercent = 0.05;
  101. PT.SpeedOverTime[2].Value = 0.0;
  102.  
  103. PT.SpeedOverTime[3].TimePercent = 1.0;
  104. PT.SpeedOverTime[3].Value = 0.0;
  105.  
  106. -- Tangent Speed over time
  107. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  108. PT.TangentSpeedOverTime[1].Value = 0.0;
  109.  
  110. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  111. PT.TangentSpeedOverTime[2].Value = 0.0;
  112.  
  113.  
  114. -- GravityAcceleration over time
  115. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  116. PT.GravityAccelerationOverTime[1].Value = 0.0;
  117.  
  118. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  119. PT.GravityAccelerationOverTime[2].Value = 0.0;
  120.  
  121. -- AngleSpeed over time
  122. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  123. PT.AngleSpeedOverTime[1].Value = 2.0;
  124.  
  125. PT.AngleSpeedOverTime[2].TimePercent = 0.2;
  126. PT.AngleSpeedOverTime[2].Value = 1.0;
  127.  
  128. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  129. PT.AngleSpeedOverTime[2].Value = 1.0;
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.